400 |
How can I change the first visible date in the chart
|
399 |
How can I scroll or ensure that a specified date time is visible in the chart
|
398 |
How can I scroll or ensure that a specified date time is visible to the right side of the chart or control
|
397 |
How can I scroll or ensure that a specified date time is visible
|
396 |
How can I show or hide the the tooltip being shown when the user scrolls the chart
|
395 |
How can I change the format of the tooltip when the user scrolls the chart
|
394 |
How can I hide the chart's scroll bar
|
393 |
How can I specify the first day of the week
|
392 |
How do I change the AM or PM shortcuts in the chart's header
|
391 |
How do I change the name for the months, being displayed in the chart's header
|
390 |
How do I change the name for the week days, being displayed in the chart's header
|
389 |
How do I access a level in the chart's header
|
388 |
How can I change the color for the grid lines between the leves in the chart's header
|
387 |
How can I show or hide the grid lines between the leves in the chart's header
public void init() { COM com_Chart,com_Level; anytype var_Chart,var_Level; ; super(); exgantt1.GridLineColor(WinApi::RGB2int(255,0,0)); var_Chart = exgantt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level; com_Level.DrawTickLines(false); var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level; com_Level.DrawTickLines(false); } |
386 |
How do I change the foreground color for the chart's header
|
385 |
How do I change the background color for the chart's header
|
384 |
How do I specify the chart's foreground color
|
383 |
How do I specify the chart's background color
|
382 |
How do I put a picture on the center of the chart
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(17/*MiddleCenter*/); } |
381 |
How do I resize/stretch a picture on the chart's background
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(49/*Stretch*/); } |
380 |
How do I put a picture on the chart's center right bottom side
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(34/*LowerRight*/); } |
379 |
How do I put a picture on the chart's center left bottom side
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(32/*LowerLeft*/); } |
378 |
How do I put a picture on the chart's center top side
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(1/*UpperCenter*/); } |
377 |
How do I put a picture on the chart's right top corner
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(2/*UpperRight*/); } |
376 |
How do I put a picture on the chart's left top corner
public void init() { ; super(); exgantt1.Chart().Picture(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); exgantt1.Chart().PictureDisplay(0/*UpperLeft*/); } |
375 |
How do I put a picture on the chart's background
|
374 |
How to specify the width for the left or side pane
|
373 |
How do I display the header of the chart using multiple levels, lines
|
372 |
How do change the width of the chart's area
|
371 |
How do I show or hide the control's chart area
|
370 |
How do I access the chart's area of the control
|
369 |
How do I change the control's border, using your EBN files
public void init() { ; super(); exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exgantt1.Appearance(16777216); } |
368 |
Can I change the default border of the tooltip, using your EBN files
public void init() { ; super(); exgantt1.ToolTipDelay(1); exgantt1.ToolTipWidth(364); exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exgantt1.Background(64/*exToolTipAppearance*/,0x1000000); COM::createFromVariant(exgantt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
367 |
Can I change the background color for the tooltip
public void init() { ; super(); exgantt1.ToolTipDelay(1); exgantt1.ToolTipWidth(364); exgantt1.Background(65/*exToolTipBackColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exgantt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
366 |
Does the tooltip support HTML format
|
365 |
Can I change the forecolor for the tooltip
public void init() { ; super(); exgantt1.ToolTipDelay(1); exgantt1.ToolTipWidth(364); exgantt1.Background(66/*exToolTipForeColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exgantt1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
364 |
Can I change the foreground color for the tooltip
|
363 |
How can I merge cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.DrawGridLines(-1/*exAllLines*/); exgantt1.MarkSearchColumn(false); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); exgantt1.Columns().Add("C3"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("this cell merges the first two columns"); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1)); h = com_Items.AddItem(); com_Items.CellCaption(h,COMVariant::createFromInt(1),"this cell merges the last two columns"); com_Items.CellMerge(h,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); h = com_Items.AddItem("this cell merges the all three columns"); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1)); com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(2)); h = com_Items.AddItem("this draws a divider item"); com_Items.ItemDivider(h,0); } |
362 |
How can I merge cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text merges all cells in the item"); com_Items.ItemDivider(h,0); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); } |
361 |
How can I specify the width for a splited cell
public void init() { COM com_Items; COMVariant s,s1; anytype var_Items; int h; ; super(); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.Columns().Add("Single Column"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Split 1"); s = com_Items.SplitCell(h,COMVariant::createFromInt(0)); com_Items.CellWidth(,s,64); com_Items.CellCaption(,s,"Split 2"); s1 = com_Items.SplitCell(,s); com_Items.CellCaption(,s1,"Split 3"); com_Items.CellWidth(,s1,64); } |
360 |
How can I split a cell in three parts
public void init() { COM com_Items; COMVariant s,s1; anytype var_Items; int h; ; super(); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.Columns().Add("Single Column"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Split 1"); s = com_Items.SplitCell(h,COMVariant::createFromInt(0)); com_Items.CellCaption(,s,"Split 2"); s1 = com_Items.SplitCell(,s); com_Items.CellCaption(,s1,"Split 3"); } |
359 |
How can I add a button aligned to right
public void init() { COM com_Items; COMVariant s; anytype var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("Single Column"); exgantt1.ShowFocusRect(false); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemDivider(com_Items.AddItem("This is a bit of text being displayed on the entire item"),0); s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0)); com_Items.CellCaption(,s,"Split Cell <img>1</img>"); com_Items.CellCaptionFormat(,s,1/*exHTML*/); com_Items.CellHAlignment(,s,1/*CenterAlignment*/); com_Items.CellHasButton(,s,16777216); com_Items.CellWidth(,s,84); } |
358 |
How can I split a cell
public void init() { COM com_Items; COMVariant s; anytype var_Items; str var_s; ; super(); exgantt1.DrawGridLines(-2/*exRowLines*/); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exgantt1.Columns().Add("Single Column"); exgantt1.ShowFocusRect(false); var_Items = exgantt1.Items(); com_Items = var_Items; s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0)); com_Items.CellCaption(,s,"Split Cell <img>1</img>"); com_Items.CellCaptionFormat(,s,1/*exHTML*/); com_Items.CellHAlignment(,s,1/*CenterAlignment*/); com_Items.CellBackColor(,s,0x1000000); com_Items.CellWidth(,s,84); } |
357 |
Can I select an item giving its general position
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectPos(COMVariant::createFromInt(1)); } |
356 |
How can I change the color for separator / dividers items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.GridLineColor(WinApi::RGB2int(255,0,0)); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.ScrollBySingleLine(false); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem(); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/); com_Items.ItemHeight(h,6); com_Items.SelectableItem(h,false); h = com_Items.AddItem("Cell 2"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
355 |
How can I add separator - dividers items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.ScrollBySingleLine(false); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem(); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/); com_Items.ItemHeight(h,6); com_Items.SelectableItem(h,false); h = com_Items.AddItem("Cell 2"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
354 |
Can I change the style of the line being displayed by a divider item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.ScrollBySingleLine(false); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,4/*DoubleDotLine*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.ItemHeight(h,24); } |
353 |
Can I remove the line being displayed by a divider item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.ItemDividerLine(h,0/*EmptyLine*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); } |
352 |
How can I display a divider item, merging all cells
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.TreeColumnIndex(-1); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); com_Items.ItemDivider(h,0); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); } |
351 |
How can I fix or lock items
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*TopAlignment*/,1); com_Items.CellCaption(com_Items.LockedItem(0/*TopAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(0/*TopAlignment*/,0),WinApi::RGB2int(196,196,186)); com_Items.LockedItemCount(2/*BottomAlignment*/,2); com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(2/*BottomAlignment*/,0),WinApi::RGB2int(196,196,186)); com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,1),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); com_Items.ItemBackColor(com_Items.LockedItem(2/*BottomAlignment*/,1),WinApi::RGB2int(186,186,186)); } |
350 |
How can I fix or lock an item on the bottom side of the control
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(2/*BottomAlignment*/,1); com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the bottom side of the control."); h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
349 |
How can I fix or lock an item on the top of the control
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*TopAlignment*/,1); com_Items.CellCaption(com_Items.LockedItem(0/*TopAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control."); h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
348 |
Is there any function to limit the height of the items when I display it using multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.ScrollBySingleLine(true); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); com_Items.ItemMaxHeight(h,48); } |
347 |
Why I cannot center my cells in the column
public void init() { ; super(); exgantt1.TreeColumnIndex(-1); exgantt1.DrawGridLines(-2/*exRowLines*/); COM::createFromVariant(exgantt1.Columns().Add("Default")).Alignment(1/*CenterAlignment*/); exgantt1.Items().AddItem("item 1"); exgantt1.Items().AddItem("item 2"); exgantt1.Items().AddItem("item 3"); } |
346 |
How can I align the cell to the left, center or to the right
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.TreeColumnIndex(-1); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellHAlignment(com_Items.AddItem("left"),COMVariant::createFromInt(0),0/*LeftAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("center"),COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.CellHAlignment(com_Items.AddItem("right"),COMVariant::createFromInt(0),2/*RightAlignment*/); } |
345 |
How do I apply HTML format to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s,var_s1; ; super(); exgantt1.TreeColumnIndex(-1); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exgantt1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("The following item shows some of the HTML format supported:"); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); var_s1 = "<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u"; var_s1 = var_s1 + ">underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor"; var_s1 = var_s1 + "</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "; h = com_Items.AddItem(COMVariant::createFromStr(var_s1)); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellSingleLine(h,COMVariant::createFromInt(0),false); } |
344 |
How can I change the font for a cell
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Default"); exgantt1.Items().AddItem("std font"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaptionFormat(com_Items.AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),COMVariant::createFromInt(0),1/*exHTML*/); } |
343 |
How can I change the font for a cell
public void init() { COM com_Items,com_f; anytype f,var_Items; ; super(); exgantt1.Columns().Add("Default"); exgantt1.Items().AddItem("default font"); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellFont(com_Items.AddItem("new font"),COMVariant::createFromInt(0),f); } |
342 |
How can I change the font for entire item
public void init() { COM com_Items,com_f; anytype f,var_Items; ; super(); exgantt1.Columns().Add("Default"); exgantt1.Items().AddItem("default font"); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemFont(com_Items.AddItem("new font"),f); } |
341 |
How do I vertically align a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.DrawGridLines(-2/*exRowLines*/); COM::createFromVariant(exgantt1.Columns().Add("MultipleLine")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); exgantt1.Columns().Add("VAlign"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"top"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),0/*TopAlignment*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"middle"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),1/*MiddleAlignment*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"bottom"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),2/*BottomAlignment*/); } |
340 |
How can I change the position of an item
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.ItemPosition(com_Items.AddItem("Item 3"),0); } |
339 |
How do I find an item based on a path
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234)); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindPath("Root 1\\Child 1"),true); } |
338 |
How do I find an item based on my extra data
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234)); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindItemData(COMVariant::createFromInt(1234)),true); } |
337 |
How do I find an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindItem("Child 2",COMVariant::createFromInt(0)),true); } |
336 |
How can I insert a hyperlink or an anchor element
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exgantt1.Columns().Add("Column"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaptionFormat(com_Items.AddItem("Just an <a1>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); var_Items1 = exgantt1.Items(); com_Items1 = var_Items1; com_Items1.CellCaptionFormat(com_Items1.AddItem("Just another <a2>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); } |
335 |
How do I find the index of the item based on its handle
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(com_Items.ItemToIndex(h)),true); } |
334 |
How do I find the handle of the item based on its index
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(1),true); } |
333 |
How can I find the cell being clicked in a radio group
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.SelBackColor(WinApi::RGB2int(255,255,128)); exgantt1.SelForeColor(WinApi::RGB2int(0,0,0)); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); exgantt1.Columns().Add("C3"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); com_Items.CellBold(,com_Items.CellChecked(1234),true); } |
332 |
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemHasChildren(com_Items.AddItem("parent item with no child items"),true); com_Items.AddItem("next item"); } |
331 |
Can I let the user to resize at runtime the specified item
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.ScrollBySingleLine(true); exgantt1.DrawGridLines(-2/*exRowLines*/); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.ItemAllowSizing(com_Items.AddItem("resizable item"),true); com_Items.AddItem("not resizable item"); } |
330 |
How can I change the size ( width, height ) of the picture
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.CellPictureWidth(h,COMVariant::createFromInt(0),24); com_Items.CellPictureHeight(h,COMVariant::createFromInt(0),24); com_Items.ItemHeight(h,32); h = com_Items.AddItem("Root 2"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); } |
329 |
How can I find the number or the count of selected items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.SingleSel(false); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(com_Items.ItemChild(h),true); com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true); com_Items.AddItem(com_Items.SelectCount()); } |
328 |
How do I unselect an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,false); } |
327 |
How do I find the selected item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); com_Items.ItemBold(com_Items.SelectedItem(0),true); } |
326 |
How do I un select all items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.SingleSel(false); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.UnselectAll(); } |
325 |
How do I select multiple items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.SingleSel(false); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(com_Items.ItemChild(h),true); com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true); } |
324 |
How do I select all items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.SingleSel(false); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectAll(); } |
323 |
How do I select an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); } |
322 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>p1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); com_Items.ItemHeight(h,48); } |
321 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); } |
320 |
Can I display a button with some icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," <img>1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); } |
319 |
How can I assign multiple icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exgantt1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("text <img>p1</img> another picture <img>p2</img> and so on"); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))); com_Items.ItemHeight(h,48); com_Items.AddItem("Root 2"); } |
318 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exgantt1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); com_Items.AddItem("Root 2"); } |
317 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); } |
316 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImages(h,COMVariant::createFromInt(0),"1,2,3"); } |
315 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exgantt1.Images(COMVariant::createFromStr(var_s)); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImage(h,COMVariant::createFromInt(0),1); com_Items.CellImage(com_Items.InsertItem(h,,"Child 1"),COMVariant::createFromInt(0),2); com_Items.CellImage(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(0),3); com_Items.ExpandItem(h,true); } |
314 |
How can I get the handle of an item based on the handle of the cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("Default"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.CellItem(com_Items.ItemCell(h,COMVariant::createFromInt(0))),true); } |
313 |
How can I display a button inside the item or cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 1 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true); h = com_Items.AddItem("Cell 2"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 2 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),1/*CenterAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
312 |
How can I change the state of a radio button
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.SelBackColor(WinApi::RGB2int(255,255,128)); exgantt1.SelForeColor(WinApi::RGB2int(0,0,0)); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); exgantt1.Columns().Add("C3"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
311 |
How can I assign a radio button to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.MarkSearchColumn(false); exgantt1.SelBackColor(WinApi::RGB2int(255,255,128)); exgantt1.SelForeColor(WinApi::RGB2int(0,0,0)); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); exgantt1.Columns().Add("C3"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
310 |
How can I change the state of a checkbox
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Check Box"); com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
309 |
How can I assign a checkbox to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Check Box"); com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true); } |
308 |
How can I display an item or a cell on multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.ScrollBySingleLine(true); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines"); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
307 |
How can I assign a tooltip to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"tooltip"); com_Items.CellToolTip(h,COMVariant::createFromInt(1),"This is bit of text that's shown when the user hovers the cell"); } |
306 |
How can I associate an extra data to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellData(h,COMVariant::createFromInt(1),"your extra data"); } |
305 |
How do I enable or disable a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellEnabled(h,COMVariant::createFromInt(1),false); } |
304 |
How do I change the cell's foreground color
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellForeColor(h,COMVariant::createFromInt(1),WinApi::RGB2int(255,0,0)); } |
303 |
How do I change the visual effect for the cell, using your EBN files
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellBackColor(h,COMVariant::createFromInt(1),0x1000000); } |
302 |
How do I change the cell's background color
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellBackColor(h,COMVariant::createFromInt(1),WinApi::RGB2int(255,0,0)); } |
301 |
How do I change the caption or value for a particular cell
public void init() { COM com_Items; anytype var_Items; ; super(); exgantt1.Columns().Add("C1"); exgantt1.Columns().Add("C2"); var_Items = exgantt1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Cell 1"),COMVariant::createFromInt(1),"Cell 2"); } |